﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Linq;
namespace PPFinance.BLL
{
    public class ExpenditureCategory : DataBase
    {
        public void ConnTest()
        {
            var xx = DataContext.Expenditure_Categories;
            var x = from x1 in xx where x1.IsReadOnly == false select x1;
            var row = new DAL.Expenditure_Category() { Memo = "test", ParentID = 0, Name = "test" };
            DataContext.Expenditure_Categories.Add(row);
            DataContext.SubmitChanges();

        }



        public System.Collections.Generic.IEnumerable<DAL.Expenditure_Category> GetList()
        {
            var list = DataContext.Expenditure_Categories.Where(p => 1 == 1);
        
            return list;
        }

    }
}
